#ifndef __lcd_H__
#define __lcd_H__
#define uchar unsigned char
#define lcd_databus P2 // LCD的8位数据总线

void delays(unsigned char time);    //定义延时函数
void write_com(unsigned int com);   //写指令
void write_data(unsigned char dat); //写数据
void lcd_init();                    //lcd初始化
void lcd_set_line(uchar sline);
void lcd_clear(uchar sel);
void display(uchar cs, uchar page, uchar column, uchar *p, uchar index);
void display_number(uchar cs, uchar page, uchar column, uchar *p, uchar index);
#endif
